package bairui.international.console.web.controller.branch.branch;

import com.lianjing.sh.spring.web.controller.base.operate.OperateTarget;
import com.lianjing.sh.spring.web.controller.enhance.tab.TabContext;

import bairui.international.console.web.controller.branch.branch.area.C_BranchCompanyArea_Page_PageAccess;
import bairui.international.console.web.controller.branch.branch.staff.C_BranchCompanyStaff_Page_PageAccess;

public class Tab_BranchCompany {

	public static void tab(TabContext tabContext, long branchId){
		tabContext
			.add(new C_BranchCompany_Detail_DetailAccess.DetailAccess.Operate(){
				@Override public String comment() {
					return "分公司详情";
				}
				@Override public Object getId() {
					return branchId;
				}
				@Override public OperateTarget target() {
					return OperateTarget.Popup;
				}
			})
			.add(new C_BranchCompanyStaff_Page_PageAccess.PageAccess.Operate(){
				@Override public String comment() {
					return "员工管理";
				}
				@Override public Object getBranchId() {
					return branchId;
				}
				@Override public OperateTarget target() {
					return OperateTarget.Popup;
				}
			})
			.add(new C_BranchCompanyArea_Page_PageAccess.PageAccess.Operate(){
				@Override public String comment() {
					return "区域管理";
				}
				@Override public Object getBranchId() {
					return branchId;
				}
				@Override public OperateTarget target() {
					return OperateTarget.Popup;
				}
			});
	}
	
}
